package com.lagou.edu.mvcframework.interceptor;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author: wudong
 * @create: 2021-06-21 10:57
 **/
public interface HandlerInterceptor<T,R> {

    R match(T pattern);

    boolean preHandle(HttpServletRequest request, HttpServletResponse response,R matchSource)
            throws Exception;

    void postHandle(HttpServletRequest request, HttpServletResponse response,R matchSource) throws Exception;
}
